package com.dq.Week1.day01;

//java的基本类型
//byte
//short
//int
//long
//float
//double
//char
//boolean
public class Demo02 {
    public static void main(String[] args) {

        byte age = 18;
        System.out.println(age);

        //age = 200 编译错误，200超出了byte的取值范围了
        age = 127; //最大值
        age = -128;//最小值
        System.out.println(age);

        //学习的学识
        short lessionHours = (3 + 6 + 4) * 5 * 10;
        System.out.println("lessionHours：" + lessionHours);//字符串+short 类型会变为字符串

        long bigNumber = 10000000000000L;

        //两种小数
        float price = 10.2F;
        double score = 97.5;

        //boolean
        boolean flag = true;
        flag = false;

        //flag = 1;//错误

        char sex = '女';//注意：单引号，代表变量的值为字符
        sex = '男';//MALE,FEMALE;MAN,WOMAN





    }
}
